package cn.xcyy.itcc.feign;

import cn.xcyy.itcc.domain.Login;
import cn.xcyy.itcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "longin",value = "service-uaa",fallbackFactory = LonginFeignClientFallbackFactory.class)
public interface LonginFeignClient {

    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    JSONResult saveOrUpdate(@RequestBody Login login);


}
